/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package admin.action;

import admin.provider.WrapperProvider;
import admin.result.IResult;


/**
 *
 * @author Nothing4ever
 */
public class ActionRemove<T> extends IAction<T> {

    public ActionRemove(WrapperProvider<T> provider, T object) {
        super(provider, object);
    }

    @Override
    public void doAction() {
        IResult result = getProvider().remove(getObject());
        result.showMessage();
    }
}
